package com.mobis.friend;


import com.mobis.friend.pojo.Friend;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Bean;
import utils.IdWorker;
import utils.JwtUtils;

@SpringBootApplication
@EnableFeignClients
@EnableDiscoveryClient
@EnableEurekaClient
public class FriendServer {

    public static void main(String[] args) {
        SpringApplication.run(FriendServer.class, args);
    }

    @Bean
    public IdWorker getIdwork() {
        return new IdWorker(1, 1);
    }

    @Bean
    public JwtUtils getjwt() {
        return new JwtUtils();
    }
}
